data1 = [1, 2, 3, 3, 4, 4, 4, 5]

data2 = list(set(data1))

print(data2)